how to install kvm on minimal centos7

  1. install xfce

    yum install epel-release -y
    yum groupinstall "X Window System" -y
    yum groupinstall xfce -y
    systemctl set-default graphical.target
    reboot
    
  2. install vncserver

    yum install tigervnc-server -y
    vncserver
    set +H
    echo -e "#!/bin/sh\nstartxfce4 &" > /root/.vnc/xstartup
    vncserver :1
    
  3. install kvm

    yum install qemu-kvm libvirt libvirt-python libguestfs-tools virt-install -y
    systemctl start libvirtd
    systemctl enable libvirtd
    
  4. references:

    https://linux.dell.com/files/whitepapers/KVM_Virtualization_in_RHEL_7_Made_Easy.pdf